import store from '@/store'
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "labelWidth": 100,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      "display": false,
      "hide": true
    },	  {
      "type": "select",
      "label": "线路名称",
      "prop": "lineCode",
      "search": true,
      searchValue: store.getters.userInfo.lineCode,
      disabled: true,
      "cascaderItem": ["stationCode"],
      "dicUrl": "support/swparamline/dict",
      "props": {
        "label": "name",
        "value": "code"
      },
      "rules": [{ required: true, message: "请选择线路名称"}]
    },	  {
      "type": "select",
      "label": "车站名称",
      "prop": "stationCode",
      "search": true,
      viewDisplay: false,
      "dicFlag": false,
      "dicUrl": "support/swparamstation/dict/{{key}}",
      "props": {
        "label": "name",
        "value": "code"
      },
      "rules": [{ required: true, message: "请选择车站名称"}]
    },	  {
      "type": "input",
      "label": "设备操作号",
      "prop": "operationCode",
      "search": true,
	    "searchLabelWidth": 90,
      "rules": [{ required: true, message: "请输入设备操作号"}]
    },	  {
      "type": "select",
      "search": true,
      "label": "状态",
      "prop": "status",
      "dicData": [{
        "label": "启用",
        "value": "1"
      }, {
        "label": "未启用",
        "value": "0"
      }],
      "rules": [{ required: true, message: "请选择状态"}]
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "display": false,
      "hide": true
    } ]
}
